// license-header java merge-point
/**
 * This is only generated once! It will never be overwritten.
 * You can (and have to!) safely modify it by hand.
 */
package fr.upstlse.glre.business.domain.depot;
/**
 * @see fr.upstlse.glre.business.domain.depot.Libelle
 */
public class LibelleDaoImpl
    extends fr.upstlse.glre.business.domain.depot.LibelleDaoBase
{
    /**
     * @see fr.upstlse.glre.business.domain.depot.LibelleDao#toLibelleVO(fr.upstlse.glre.business.domain.depot.Libelle, fr.upstlse.glre.business.vo.depot.LibelleVO)
     */
    public void toLibelleVO(
        fr.upstlse.glre.business.domain.depot.Libelle source,
        fr.upstlse.glre.business.vo.depot.LibelleVO target)
    {
        super.toLibelleVO(source, target);
    }


    /**
     * @see fr.upstlse.glre.business.domain.depot.LibelleDao#toLibelleVO(fr.upstlse.glre.business.domain.depot.Libelle)
     */
    public fr.upstlse.glre.business.vo.depot.LibelleVO toLibelleVO(final fr.upstlse.glre.business.domain.depot.Libelle entity)
    {
        return super.toLibelleVO(entity);
    }


    /**
     * Retrieves the entity object that is associated with the specified value object
     * from the object store. If no such entity object exists in the object store,
     * a new, blank entity is created
     */
    private fr.upstlse.glre.business.domain.depot.Libelle loadLibelleFromLibelleVO(fr.upstlse.glre.business.vo.depot.LibelleVO libelleVO)
    {
        fr.upstlse.glre.business.domain.depot.Libelle libelle = this.load(libelleVO.getId());
        if (libelle == null)
        {
            libelle = fr.upstlse.glre.business.domain.depot.Libelle.Factory.newInstance();
        }
        return libelle;
    }

    
    /**
     * @see fr.upstlse.glre.business.domain.depot.LibelleDao#libelleVOToEntity(fr.upstlse.glre.business.vo.depot.LibelleVO)
     */
    public fr.upstlse.glre.business.domain.depot.Libelle libelleVOToEntity(fr.upstlse.glre.business.vo.depot.LibelleVO libelleVO)
    {
        fr.upstlse.glre.business.domain.depot.Libelle entity = this.loadLibelleFromLibelleVO(libelleVO);
        this.libelleVOToEntity(libelleVO, entity, true);
        return entity;
    }


    /**
     * @see fr.upstlse.glre.business.domain.depot.LibelleDao#libelleVOToEntity(fr.upstlse.glre.business.vo.depot.LibelleVO, fr.upstlse.glre.business.domain.depot.Libelle)
     */
    public void libelleVOToEntity(
        fr.upstlse.glre.business.vo.depot.LibelleVO source,
        fr.upstlse.glre.business.domain.depot.Libelle target,
        boolean copyIfNull)
    {
        super.libelleVOToEntity(source, target, copyIfNull);
    }

}